<?php

class Form_Search extends Zend_Form {
	
	public function init() {
//		$this->setName('form_search')
//			->setAction (Zend_Controller_Front::getInstance()->getBaseUrl().'/search/result')
//			->setMethod('post');
		
		$query = $this->createElement('text', 'q');
		$query->addFilter('StringTrim')
			->addFilter('StripTags')
			->setRequired(true);
		$this->addElement($query);	
			
			
		$submit = $this->createElement('submit', 'submit');
        $this->addElement($submit);
	}
	
	
}
?>
